package com.springcloud.alibaba.stream.controller;

import com.springcloud.alibaba.stream.service.MessageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author:RenPu
 * @Date: 2020/7/2 10:48
 * @Version: 1.0
 * @description:
 */

@RestController
@Slf4j
public class MessageProviderController {

    @Resource
    private MessageService messageService;


    @GetMapping(value = "/stream/provider/getMessageInfo")
    public void getMessageInfo(){
        messageService.send();
    }

}
